<!DOCTYPE html>
<html>
<head>
    <title>g9 test page</title>
    <style type="text/css">
    html, body, svg {
    	position: absolute;
    	width: 100%;
    	height: 100%;
    	margin: 0;
    }
    line, circle {
        cursor: move;
    }
    </style>
</head>
<body>

<div class='demo'></div>

<script type="text/javascript" src='./build/g9.js'></script>

<!-- <script type="text/javascript" src='./demos/dragon.js'></script> -->

<script type="text/javascript">

var sc = location.search.slice(1) || 'dragon'

var e = eval

fetch('http://localhost:1337/demos/' + sc + '.js')
	.then(s => s.text())
	.then(x => {
		e(x)
	    demo.align('center', 'center')
    	    .insertInto('.demo')
	})

</script>

</body>
</html>